package com.ogawa.networklib;

import com.ogawa.networklib.networkBean.AddressBean;
import com.ogawa.networklib.networkBean.BaseResponseBean;
import com.ogawa.networklib.networkBean.DeviceStatusBean;
import com.ogawa.networklib.networkBean.MqttAccountBean;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * 请求接口类
 * Created by HourGlassRemember on 2018/10/25.
 */
public interface ApiService {

    /**
     * 获取MQTT账号密码
     */
    @GET("/api/app/v1/mqttuser/{sn}")
    Observable<BaseResponseBean<MqttAccountBean>> getMqttAccount(@Path("sn") String sn);

    /**
     * 按摩椅运行状态查询
     */
    @GET("/api/device-gw/v1/chair/status")
    Observable<BaseResponseBean<DeviceStatusBean>> getDeviceStatus(@Query("param") String params, @Query("isMac") int isMac);

    /**
     * 上传位置信息
     */
    @POST("/api/uac/v1/user/address")
    Observable<BaseResponseBean<String>> updateAddress(@Body AddressBean addressBean);
}
